package action;


import com.opensymphony.xwork2.ActionSupport;

import dao.BoxDao;


@SuppressWarnings("serial")
public class addBoxAction extends ActionSupport{

	private int terminalId;
	private int fromNum;
	private int toNum;
	private int type;
	private BoxDao boxDao;
	public String execute(){
		boxDao=new BoxDao();
		
		for(int i=fromNum;i<=toNum;i++){

			boxDao.addBox(terminalId, i, type);
		}
		return "success";
	}

	public int getTerminalId() {
		return terminalId;
	}

	public void setTerminalId(int terminalId) {
		this.terminalId = terminalId;
	}

	public int getFromNum() {
		return fromNum;
	}

	public void setFromNum(int fromNum) {
		this.fromNum = fromNum;
	}

	public int getToNum() {
		return toNum;
	}

	public void setToNum(int toNum) {
		this.toNum = toNum;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
